<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="box">
        <button @click="handleClick()">点击</button>
    </div>

    <script>
        //mixins 公共方法引入
        const obj = {
            methods:{
                handleClick(){
                    console.log('click')
                },
                handleClick1(){
                    console.log('click1')
                }
            },
            computed:{
            total(){
                return "11111111"
            }
        }
        }

       


        new Vue ({
            el: '#box',
            data: {

            },
            mixins:[obj],
            methods: {

            },

        })
    </script>
</body>
</html>